package com.neuedu.service.fallback;

import com.neuedu.model.Product;
import com.neuedu.service.ProductServiceFeign;
import org.springframework.stereotype.Component;

@Component
public class ProductServiceFallback implements ProductServiceFeign {
    @Override
    public Product queryProductById(Integer pid) {
        Product product = new Product();
        product.setPid(-1);
        product.setPname("下单失败，商品微服务不可用");
        return product;
    }
}
